package assignment0.node;

import assignment0.visitor.Visitor;

public class AssignNode implements Node {
	public Node left;
	public Node right;

	public Object visit(Visitor v) {
		return v.visitAssign(this);
	}

	@Override
	public String toTree() {
		// Replace <NONE> with "" to make it match the Strings from the test
		// tool online
		return String.format("Assign(left=%s, right=%s)", left.toTree(), right.toTree()).replace("<NONE>", "");
	}
}